server_srcs := $(wildcard server/*.c)
client_srcs := $(wildcard client/*.c)
server_objs := $(server_srcs:%.c=%.o)
client_objs := $(client_srcs:%.c=%.o)
CFLAGS := -pthread -lcrypt -lmysqlclient -lcrypto -lssl
all:server/server client/client
client/client:$(client_objs)
	gcc $^ -o $@ $(CFLAGS)
server/server:$(server_objs)
	gcc $^ -o $@ $(CFLAGS)
%.o:%.c
	gcc -c $^ -o $@ -g 
clean:
	$(RM) client/client server/server $(server_objs)
